package com.zzy;

import java.util.Arrays;

public class PhoneTest {

    public static void main(String[] args) {


        PhoneBalance[] balances = {new PhoneBalance("13533876711",15,23.2),
                new PhoneBalance("13533876711",15,23.2),
                new PhoneBalance("13533876712",18,28.2),
                new PhoneBalance("13533876713",5,200.2),
                new PhoneBalance("13533876714",15,20.0),
                new PhoneBalance("13533876715",22,52.0),
        };

        Arrays.sort(balances);
        System.out.println(Arrays.asList(balances));
    }
}
